package router

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"github.com/toolkits/pkg/ginx"
	"net/http"
)

func TestView(c *gin.Context) {
	f := struct {
		name string
	}{}
	ginx.BindJSON(c, &f)
	ginx.NewRender(c, http.StatusForbidden).Message(fmt.Errorf("msiadf%d", 1))
}
